login(only with email, not username), logout and registration working