Put the deposit amount, refund date and permitted deductions in the contract
Write down how much the deposit is, when it is returned and what deductions are permitted before signing. The landlord cannot invent an unjustified deduction at move-out that the contract did not provide for.