implemented http basic authentication