def METHOD_NAME(cls, v, values):
    if v and values.get("LOGIN_TWILIO") is None:
        msg = "Cannot enable 2FA w/o twilio settings which is used to send SMS"
        raise ValueError(msg)
    return v