def clean_username(self):
        """username must be a valid email address for simple users."""
        if self.cleaned_data not in "role":
            return self.cleaned_data["username"]
        if self.cleaned_data["role"] != "SimpleUsers":
            return self.cleaned_data["username"]
        uname = self.cleaned_data["username"].lower()
        validate_utf8_email(uname)
        return uname
dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/forms/account.py/AccountFormGeneral.clean_username/swapped operands of `not in`