Fixed failed authentication redirection and feedback