You should have him enter into an agreement for the payment of half of the second mortagage and have an indemnity clause in the agreement that should the second mortgage for whatever reason be unpaid, and the mortgage company comes after you for payment that he will be responsible for its payment.
Attorney
Negotiate, Draft, and Review many complex commercial agreements each year.