<human>:  What are the legal rights of tenants in a rental property?
<bot>: The legal rights of tenants in a rental property include the right to safe and habitable living conditions that meet all local building codes, the right to a refund of a security deposit as per local laws, the right to privacy, the right to be free from harassment and illegal discrimination, the right to have repairs completed when needed, the right to receive proper notice before eviction proceedings, the right to receive a valid written lease, and the right to have post-dated rent payments returned or processed.