classList.add('was-validated');
                }, false);
                
                // Reset form validation when reset button is clicked
                form.addEventListener('reset', function(event) {
                    form.classList.remove('was-validated');
                }, false);
            });
            
            // Password visibility toggles
            const togglePassword = document.getElementById('togglePassword');
            const password = document.getElementById('password')