Better form validation approach