{% if login_form.non_field_errors %}
<p class="text-danger">{{ login_form.non_field_errors.as_text|cut:"* "|escape }}</p>
{% endif %}class LoginForm(AuthenticationForm):
error_messages= {
"invalid_login": _("Incorrect %(username)s/password combo")
}
# more code here...
}