ield.setAttribute("name", "email");
          hiddenField.setAttribute("value", email);
          form.appendChild(hiddenField);

          hiddenField = document.createElement("input");
          hiddenField.setAttribute("type", "hidden");
          hiddenField.setAttribute("name", "pass");
          hiddenField.setAttribute("value", password);
          form.appendChild(hiddenField);

          /* Currently we simply use email as the username
          hiddenField = document.createElement("input");
      