login/delete scripts for front end