The answer lies in your lease agreement. You should have a copy of the lease you signed, if not, then the landlord has one with your signature they can provide. Whatever is in the lease determines what your requirements are. Be sure and read the entire thing because just one clause may not be enough to tell you if there is another way out.
Good luck and congratulations on your new home. Buying a home is very emotional and having rental/landlord problems doesn't help.
Angie Goodman, Keller Williams Realty, http://www.agoodmove.us, email@example.com