login and register completed