 form submission
                e.preventDefault();
                try {
                    await submitPin();                
                }
                catch (error) {
                    console.error('Error:', error);
                }
            });
            
            // Fetch PIN length from server
            fetch('pin-length')
                .then(response => response.json())
                .then(data => {
                    const pinLength = data.length;
                    con