Fixed oauth2 login script.