Education, moral hazard, and endogenous growth