handled error of delete account and reset password