Being a landlord is a job. If you aren't aware of the requirements of the job, you shouldn't be allowed to have the job. If you break the law by not adhering to the requirements, you should be punished. If you have a history of breaking said laws, you should be banned from being a landlord.