.getElementById('email-input');

// Email validation function
function isValidEmail(email) {
        // Regular expression for validating an email
        const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
        return regex.test(email);
    }

    openbtn.addEventListener('click', function () {
        // Validate email
        if (emailInput.value === '') {
            alert('Please enter your email address.');
        } else if (!isValidEmail(emailInput.value)) {
            alert('Please enter a valid email 