changing bad_auth to authenticate
refactored class HTTPBasic