ity() || !emailInput.checkValidity() || !phoneInput.checkValidity()) {
                nameInput.reportValidity();
                emailInput.reportValidity();
                phoneInput.reportValidity();
                bioInput.reportValidity();
                return;  // Stop function execution if invalid
            }

            if (newEmail && !validateEmail(newEmail)) {
                alert("Invalid email address");
                return;
            }

            if (selectedAvatar) {
         