Login and register for provider and user