Adding special case to not display errors if a user is forcibly redirected to
the login page.