Login required and Admin required returned content type text/plain
instead of text/html, which caused to be misinterpreted by the browser
in some contexts.