changed getAuthUrl to getLoginUrl