code: def clean(self):
          
          cleaned_data = super(UserServiceForm, self).clean()
          sa = ServicesActivated.objects.get(name=self.initial['name'])
          # set the name of the service, related to ServicesActivated model
          cleaned_data['name'] = sa
          if sa.auth_required and sa.self_hosted:
              if cleaned_data.get('host') == '' or \
                 cleaned_data.get('username') == '' or \
                 cleaned_data.get('password') == '' or \
                 cleaned_data.get('client_id') == '' or \
                 cleaned_data.get('client_secret') == '':
                  self.add_error('username', 'All the five fields are altogether mandatory')
              elif cleaned_data.get('host') is None:
                  self.add_error('host', 'Check its protocol and its name')
              elif cleaned_data.get('host').endswith('/'):
                  cleaned_data['host'] = cleaned_data['host'][:-1]
docs: check the content of each field
          :return: