Apply form validation