Adding 'required' and 'pattern' for "integer" and "float" fields.