Customer login form / Error messages are not displayed

Hello there!
I can’t output error messages in “Customer login form”.

The fields are not colored. And no error messages is displayed under the fields.
Content of the file “login.liquid”:


				#### {{ 'customer.login.title' | t }}
				
				{%- assign formId = 'CustomerLoginForm' -%}
				{% form 'customer_login', id: formId, novalidate: 'novalidate', class: 'd-flex flex-column vertical-form' %}
				{% include 'form-status', form: form, form_id: formId %}
				

				{%- if form.errors contains 'email' -%}
				
					{{ 'general.accessibility.error' | t }}
					{% include 'icon-error' %}
					{{ form.errors.translated_fields['email'] | capitalize }} {{ form.errors.messages['email'] }}.
				
				{%- endif -%}

				{% if form.password_needed %}
				
				{% endif %}

				{%- if form.errors contains 'password' -%}
				
					{% include 'icon-error' %}
					{{ form.errors.translated_fields['password'] | capitalize }} {{ form.errors.messages['password'] }}.
				
				{%- endif -%}

				

					
					

{{ 'layout.customer.create_account' | t | customer_register_link }}

					{% if form.password_needed %}
					

{{ 'customer.login.forgot_password' | t }}

					{% endif %}
				

				{% endform %}
			

This check works correctly in the “register.liquid” file.

What am I doing wrong? I would be grateful for any help. Thanks!

Hi @Svyatoslav ,

Did you ever find a resolution for this? Seems like many people (including myself) have struggled with this, however I have never seen a definitive answer.

Thanks in advance,

Oliver.

Hey! I haven’t yet found a solution to the problem. I left everything as it is.