I have a modal page with login button. Clicking on the button verifies the username or password. And if incorrect, error messages will be shown while still being inside the modal. But I can not find a way to do this. Please help me.
You can find a few possible answers on this page - Most Common Log-in Problems and Solutions
This is a common question. There must already be a few questions related to this.
Related question: What is best practice for designing form error messages?