This is an interesting questions and answer feature from The Telegraph which explains some of the recent court cases relating to deposits. The first question is:
I have just purchased my first buy-to-let property and found a tenant. I would like to take a deposit to cover any damage caused. I understand, however, that there are rules governing the handling of a deposit. Is this correct?