401 requests (user not logged in) are redirected to main page