Again, the question is was this deposit a "holding fee"? A holding fee is provided to take the unit off the rental market; it is provided prior to the lease being signed.
Think of it along the lines of "earnest money" when a buyer wishes to purchase a property; a good faith show of money...