Validation of fields.