added basic authentication