Editing of posts not working