steps a lender must take in a mortgage foreclosure action