Added editing functionality to posts under /posts/edit_post/id