Add form validation and error tags