fixed login/registration