542. Mortgagor and his surety.

The claim on the covenant for payment may be brought against the mortgagor and against any person who has joined with him in the covenant or has given a separate covenant as surety1. The mortgagor cannot without the mortgagee's consent rid himself of his liability under the covenant for payment of the mortgage debt by transferring the equity of redemption