You may well have defenses, but there is not enough information provided.
However, you need a tenants' lawyer IMMEDIATELY. You are looking at being evicted, having the eviction show up on your credit report, and paying for a new home, several times the rent that you are now paying.
This is not legal advice and does not create an attorney-client relationship. The information provided is a general statement of the law. Reviewing a case and giving legal advice to a client requires more information than can be exchanged in this format. If you need legal advice, contact an experienced tenants' attorney.