add error message with form validation