What are the legal rights of borrowers and lenders in a mortgage agreement?