checkpoint!
fixed bug in registration and login process