According to the law its allowed to charge 3 months rent as deposit and 3 months as prepaid rent. 
The deposit is used for paint and maintenance when the person moves. 
The prepaid rent is just for security when the person would like to move, and should be used for payment of rent the last month or months the person live there. 
Create a property ad here