login and register integration