Rights and liabilities of mortgagee