added basic auth to index