                } else {
                    document.getElementById('addressError').innerText = '';
                }

                // Validate Password
                const passwordRequirements = [
                    { regex: /.{8,}/, message: 'at least 8 characters long' },
                    { regex: /[A-Z]/, message: 'an uppercase letter' },
                    { regex: /[a-z]/, message: 'a lowercase letter' },
                    { regex: /\d/, message: 'a number' },
                    { regex: