implemented http basic auth feature (hackish)