<html>
<head>
    <title>Login Form</title>
</head>
<body>
    <h1>Login</h1>

    {% if form.errors %}
        <p style="color: red;">
            Please correct the error{{ form.errors|pluralize }} below.
        </p>
    {% endif %}

    <form enctype="multipart/form-data" action="{{ formloc }}" method="post">
        <table class="formtable">
            {{ form.as_table }}
        </table>
        {% csrf_token %}
	<input type="hidden" name="next" value="{{ next }}">
        <input class="button green" type="submit" value="Submit">
    </form>
	<p>
	<a href="/rowers/register">register</a>
	</p>
</body>
</html>