Child(element.firstChild);
	}

	// Make the login request
	var xhr = new XMLHttpRequest();
	var url = "login";
	xhr.open("POST", url, true);
	xhr.setRequestHeader("Content-Type", "application/json");
	xhr.onreadystatechange = function () {
		if (xhr.readyState === 4 && xhr.status === 200) {
			var json = JSON.parse(xhr.responseText);

			if (json.result === "OK") {
				sessionStorage.setItem("accesstoken", json.accesstoken);
				window.location.replace("home.html");
			} else {
				const h3 = document.creat