Created form validation for our post insertion.