prepare for OAuth login