{{define "loginform"}}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>login</title>
  </head>
  <body>
{{if .}} <h1> login failed </h1> {{end}}
    <form method="post" action="login" id="person">
        <label class="h2" form="person">Login</label><br>
        <label for="username">username</label>
        <input type="text" name="username" id="username" maxlength="30"><br>
     
        <label for="password">password</label>
        <input type="text" name="password" id="password" maxlength="40"><br>
    
        <button type="submit">Eingaben absenden</button><br>
    </form> <a href="/user"> <button>Register new User</button></a>
  </body>
</html>
{{end}}

{{define "registerform"}}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>register</title>
  </head>
  <body>
    <form method="post" action="user" id="person">
        <label class="h2" form="person">Register new User</label><br>
        <label for="username">username</label>
        <input type="text" name="username" id="username" maxlength="30"><br>

        <label for="password">password</label>
        <input type="text" name="password" id="password" maxlength="40"><br>

        <button type="submit">Eingaben absenden</button><br>
    </form>
  </body>
</html>
{{end}}
