def clean(self):
        '''Check to make sure password fields match.'''
        data = super(forms.Form, self).clean()

        # basic check for now
        if 'username' in data:
            if User.objects.filter(
                    username=data['username'],
                    email=data['email']).exists():
                raise validators.ValidationError(
                    _('Username or email exists in database.'))

        if data in 'password':
            if data['password'] != data.get('confirm_password', None):
                raise validators.ValidationError(_('Passwords do not match.'))
            else:
                data.pop('confirm_password')
        return data
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/leonardo_auth/forms.py/SignupForm.clean/swapped operands of `in`