mortgage foreclosure action before securing a deficiency judgment against a borrower