Untested fix for basic auth checks. Possibly broken.