{% extends "base.html" %}

{% block content %}

<h1>Sign up</h1>

<form method="post">
  <label for="username">User name: </label>
  <input type="text" name="username"/>

  <label for="username">Password: </label>
  <input type="password" name="password"/>

  <label for="username">Verify password:</label>
  <input type="password" name="password-verify"/>

  <label for="username">Email (optional): </label>
  <input type="text" name="email"/>

  <input type="submit" value="post"/>
</form>

<h1>Log in</h1>

<form method="post">
  <label for="username">User name: </label>
  <input type="text" name="username"/>

  <label for="username">Password: </label>
  <input type="password" name="password"/>

  <input type="submit" value="post"/>
</form>

{% endblock %}
{% extends "base.html" %}

{% block content %}

<h1>Sign up</h1>

<form method="post">
  <label for="username">User name: </label>
  <input type="text" id="username" name="username" value="{{username}}"/>

  <label for="password">Password: </label>
  <input type="password" id="password" name="password"/>

  <label for="verify">Verify password:</label>
  <input type="password" id="verify" name="password-verify"/>

  <label for="email">Email (optional): </label>
  <input type="text" id="email" name="email" value="{{email}}"/>

  <input type="submit" value="post"/>
</form>

<h1>Log in</h1>

<form method="post">
  <label for="login-name">User name: </label>
  <input type="text" id="login-name" name="login-name" value="{{login_name}}"/>

  <label for="login-password">Password: </label>
  <input type="password" id="login-password" name="login-password"/>

  <p>{{error_login}}</p>

  <input type="submit" value="post"/>
</form>

{% endblock %}
Fix log in and sign up forms
Fix log in and sign up forms

Added ids to input elements. Changed names of inputs in
log in form. Added space for log in error message. Changed
inputs to repopulate with data after log in or sign up error.
