Legally, they have to give you your security deposit. and if you want to use it for rent you can. but they can't keep it to put it towards rent. and as far as the notice goes, you are only required to do what the notice says. there's nothing in writing saying otherwise.