New rules aim to protect homeowners from foreclosure