separated login and register