need to figure out how to handle redirect cases properly after sign in