Simplify validate method in FormField.