code: def validate_identifier(self, field):
          
          if field.data:
              field.data = field.data.lower()
              if Community.get(field.data, with_deleted=True):
                  raise validators.ValidationError(
                      _('The identifier already exists. '
                        'Please choose a different one.'))
docs: Validate field identifier.