From Search to Match: When Loan Contracts Are Too Long