*Login failed => redirect to the wordpress's page (/wp-login.php) with error ( picture 1.png)
=> I want to display error on theme's login page and login modal
*Register failed => display the wordpress's page with error (picture 2.png)
=>I want to display error on theme's register page with 2 types of error: username existing and email existing
*Lostpassword failed => display the wordpress's page with error (picture 3.png)
=>I want to display error on theme's lostpassword page
This happened on the lost-password page also in case of input an invalid email or an email was not registered before.