Complete login and register