We are not allowed to give legal advice. But as I have rented a ton of apartments her is the facts. Your contract/lease is with the landlord. Until such time you the bank gains possession of the unit and an agent for the bank contacts you must continue to pay the landlord or the landlord can evict for non-payment.
I hope this helps. You should also consult with an attorney.
The lender may offer you moving money once the property is foreclosed on. Google tenants rights in foreclosure to find out what your rights are if you have a one-year lease or are month to month.