fixed required form validation