added basic authentication feature