(5)Subject to subsection (6), the period for repayment of a loan under this section shall not exceed 40 years, and no money shall be lent on the security of any land unless the estate or interest proposed to be burdened is either ownership or a lease of which a period of not less than 50 years remains unexpired at the date of the loan.