adding fixes to login and register