Updated login service for OAuth2.