Properly redirect after sign in