Made login and register more friendly