<html>
<body>
<h2>Login</h2>
{% for error in get_flashed_messages() %}
<p class="error">{{ error }}</p>
{% endfor %}
<form action="" method="POST">
<table>
<label><tr><td>login</td><td><input type="text" name="login" value="{{ login }}"></td></tr></label>
<label><tr><td>password</td><td><input type="password" name="password"></td></tr></label>
{% if goto %}
<input type="hidden" name="goto" value="{{ goto }}">
{% endif %}
<tr><td></td><td><input type="submit" value="login"></input></td></tr>
</form>
</body>
</html>
