added basic auth stuff