Validate fields in the default onChange handler