More precise form validation