login/registration cleanup