const form = document.getElementById("loginForm"); form.addEventListener("submit", (e) => { e.preventDefault(); const email = document.getElementById("email").value; const password = document.getElementById("password").value; if (email === "sesame@ouvretoi.com" && password === "topsecret") location.href = "/flag.txt"; else alert("Invalid credentials, please try again!"); })