added basic auth for post requests