registration and login now works fine