A security deposit is any advance of money, other than a rental application deposit or an advance payment of rent, that is intended primarily to secure performance under a lease of a dwelling that has been entered into by a landlord and a tenant.
Tex. Prop. Code § 92.102