fixing images in posts
added basic auth to post creation