Enhanced form validation