update login and delete account logic