Added validations on post_edit (Finished chapter 9)