function login() { const username = document.getElementById("username").value; const password = document.getElementById("password").value; //do the auth stuff }