diff --git a/bookwyrm/templates/login.html b/bookwyrm/templates/login.html
index cbfd2b66..4e50c444 100644
--- a/bookwyrm/templates/login.html
+++ b/bookwyrm/templates/login.html
@@ -15,9 +15,6 @@
{{ login_form.username }}
- {% for error in login_form.username.errors %}
- {{ error | escape }}
- {% endfor %}
diff --git a/bookwyrm/view_actions.py b/bookwyrm/view_actions.py
index 54ed353a..3d01e9ff 100644
--- a/bookwyrm/view_actions.py
+++ b/bookwyrm/view_actions.py
@@ -24,14 +24,6 @@ def user_login(request):
return redirect('/login')
login_form = forms.LoginForm(request.POST)
- register_form = forms.RegisterForm()
- if not login_form.is_valid():
- data = {
- 'site_settings': models.SiteSettings.get(),
- 'login_form': login_form,
- 'register_form': register_form
- }
- return TemplateResponse(request, 'login.html', data)
username = login_form.data['username']
username = '%s@%s' % (username, DOMAIN)
@@ -42,6 +34,7 @@ def user_login(request):
return redirect(request.GET.get('next', '/'))
login_form.non_field_errors = 'Username or password are incorrect'
+ register_form = forms.RegisterForm()
data = {
'site_settings': models.SiteSettings.get(),
'login_form': login_form,