On the login page, when the end-user enters a wrong password, the page gets refreshed and then returns the error massage, is there a way that I can have the error appears right away after entering the wrong credentials?

The main reason I need this is because of a pop-up login form that I have created, I would like to see if there are possibilities to make the error presents on the page after the user clicked on the "login button", instead of reloading the page, or redirecting to the login page.

Any help is greatly appreciated.

Magento 2.2

  • Magento does many validations are server side for registration, you would have to develop custom module if you want to do these validations at client end. Commented Mar 3, 2018 at 9:20

1 Answer 1


If you want to reload the page by default, you should write a custom module that use ajax request to validate username and password.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.