added post form validation and error messages