added post form validation and error message