registration and login fix