                        submit.addEventListener("click", function (ev) {
                            if (userName.value.trim().length === 0) {
                                userName.focus();
                                return;
                            }
                            if (password.value.trim().length === 0) {
                                password.focus();
                                return;
                            }

                            loginError.innerHTML = "";

  