Lease termination question
Im a first time landlord who is renting out a townhome I own. I found some tenants rather quickly but just over a week after they signed the lease they wanted to break it due to the fact they couldn't get along. There is no language in the lease as to terms to break the lease. I offered them that I would keep a months rent from the deposit and the part of first months rent they had paid me and I would let them out of it. They agreed and I had them sign an agreement to those terms. Two months later I get an email from one of them telling me that she was told what I did was illegal and if I didn't repay them that she would take me to court.
Minnesota state law states: "Procedures for ending this kind of tenancy are generally written into the lease. Tenants with a definite term lease have to pay for the entire term no matter when they leave, unless the landlord agrees to accept new tenants who would take over the remaining payments. But some term leases have provisions allowing the tenant to "break" the lease. Often in such cases, the tenant is required to pay a "breaklease" fee - a sum of money and/or the tenant's security deposit. Such fees must be reasonable in amount and reflect the actual loss the landlord can be expected to suffer in the tenant moves out early."
At the time I thought I was being nice and letting them out of the lease.
Did I do this illegaly or not?
Thanks for any help or advice.