add fixes to user login and registraton