Hi,
I am making Shopify login and signup popup/Modal its working fine but if there is and error in password or email it redirect me to login page instead of showing error on my popup/Modal
Here is the Code:
Log in
×

#### Buy directly from the one of America's trusted designers
### Sign In
{%- form 'customer_login', novalidate: 'novalidate' -%}
{%- if form.errors -%}
##
{{ 'accessibility.error' | t }}
{{ 'templates.contact.form.error_heading' | t }}
{{ form.errors | default_errors }}
{%- endif -%}
{%- if form.password_needed -%}
{{ 'customer.login_page.forgot_password' | t }}
{%- endif -%}
{{ 'customer.login_page.create_account' | t }}
{%- endform -%}
### Sign Up
{%- form 'create_customer', novalidate: 'novalidate' -%}
{%- if form.errors -%}
##
{{ 'templates.contact.form.error_heading' | t }}
{%- for field in form.errors -%}
- {%- if field == 'form' -%}
{{ form.errors.messages[field] }}
{%- else -%}
{{ form.errors.translated_fields[field] | capitalize }}
{{ form.errors.messages[field] }}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- if form.errors contains 'email' -%}
{{ form.errors.translated_fields['email'] | capitalize }}
{{ form.errors.messages['email'] }}.
{%- endif -%}
{%- if form.errors contains 'password' -%}
{{ form.errors.translated_fields['password'] | capitalize }}
{{ form.errors.messages['password'] }}.
{%- endif -%}
Login to my account
{%- endform -%}
i want the error message after the field but it redirects my to this page
https://garrellassociates.com/account/login
and display error like that
Anyone can Help
Thanks In advance

