added basic auth and simple users support