Do you have registered the leave n license agreement and registered with it online state govt with sub registrar.
If the agreement is not registered than you are not eligible to pay the rent nor owner can force you in this conditions. when you have not taken physically handover of the flat possession.
So here owner has to return the deposit which you have paid in advance.