code: def identification_field_factory(label, error_required):
      
      return forms.CharField(label=label,
                             widget=forms.TextInput(attrs=attrs_dict),
                             max_length=75,
                             error_messages={'required': error_required})
docs: A simple identification field factory which enable you to set the label.
  
      :param label:
          String containing the label for this field.
  
      :param error_required:
          String containing the error message if the field is left empty.