Added form validation for Posts.