Create and update post functionality added.