public static function validate($attribute)
    {
        $userClass = Yii::$app->user->identityClass;
        $regex = $userClass::$idRegex;
        $result = preg_match($regex, $attribute);
        return is_int($result) && $result > 0;
    }