login and register fixes