new login redirect code for oauth logins