Redirect user to correct page after authentication