Changing login to OAuth2