Changes to allow create and update of posts