  if (password.match(/[0-9]+/)) strength++;
        if (password.match(/[\W]+/)) strength++;
    
        switch (strength) {
            case 0:
            case 1:
                strengthMeter.style.width = '20%';
                strengthMeter.style.backgroundColor = 'red';
                strengthMeter.textContent = 'Weak';
                break;
            case 2:
                strengthMeter.style.width = '40%';
                strengthMeter.style.backgroundColor = 'orange';
                strength