<% layout("./layouts/basic.html") %>
    <% if (!it.alreadyLoggedIn) { %>
        <main>
            <form id=loginForm method=POST>
                <p>password</p><input id=passwordInput name=password type=password><input value="sign in" type=submit>
                <div id="errDiv"></div>
            </form>
        </main>
        <script defer src=/public/js/login.js type=module></script>
        <% } else { %>
            <main>
                You are already logged in!
            </main>
            <script>
                setTimeout(() => {window.location.href = "/"}, 1500)
            </script>
            <% } %>
