Collateral, two-dimensional moral hazard, and competition