handle 401 error on anonymous page. Fixes #98