If you can prove that the house was not permitted as a residential rental property, you may be able to convince the court to vacate the rental agreement. You may need a witness from the municipality, who can testify that the building was never inspected or approved as a rental under the municipality's ordinances.