{
                    document.getElementById('usernameError').innerText = 'Username is too long.';
                    isValid = false;
                } else if (/\s/.test(usernameInput.value)) {
                    document.getElementById('usernameError').innerText = 'Username must not contain spaces.';
                    isValid = false;
                } else {
                    document.getElementById('usernameError').innerText = '';
                }

                // Validate Legal Full Name
  