If you just need a simple yes or no for correct user name, use the HTML name attribute on the form tag, and the input tags, and JavaScript can access them in the form
myElement= document.forms["myform"]. myElement.value;
(added a space so it doesn't cut off, right before myElement.value)
which...