added basic auth to put/posts