{% block content %}
<h1 class="pagetitle">Login</h1>
- <form enctype="multipart/form-data" action="/login/" method="post">
+ <form enctype="multipart/form-data" action="{% url login %}" method="post" class="cssform">
{{ aform.as_p }}
<input type="submit" value="Submit" />
</form>