redirect users to API sign up or sign in