[fix] some fixes in registration and login process