Written as a loan under the husband's name, the loan is actually used to buy a house, which belongs to the joint debt of both parties. Even if there is a dispute in the future marriage, it will not affect the repayment and property rights of the house.
It can not only protect you.