added basic auth handlers