Title: catch login error
Last modified: May 3, 2017

---

# catch login error

 *  Resolved [neilovan](https://wordpress.org/support/users/neilovan/)
 * (@neilovan)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/catch-login-error/)
 * Hello, I think your plugin is excellent. I love it, but I am hoping to add some
   functionality. I have a soccer stats website, and I get a lot of users from countries
   where English is not the 1st language. It makes logging in and giving people 
   the info that they need quite tough. For example I have 8600 registered users,
   but 4135 with unconfirmed email addresses.
 * I would like to improve the login message…
 * What I want to do is catch the error type. For me there are 3 login errors
 * 1) User name or email invalid
    2) Password invalid 3) Email NOT verified yet .
   At the moment only one message is displayed.
 * Ultimately I would like to give the user help regarding problem 1) 2) or 3) in
   the language they can understand. But first I need to identify which problem 
   they have.
 * I downloaded and added the edit labels add-on, so can change the label text. 
   I also added the [wppbc_resend_activation]. However, I only want to display this
   to the user if that is their problem.
 * Keep up the excellent work,
 * Thanks again,
 * Neil.
    -  This topic was modified 9 years, 1 month ago by [neilovan](https://wordpress.org/support/users/neilovan/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Teodor Cosofret](https://wordpress.org/support/users/teodor-cosofret/)
 * (@teodor-cosofret)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/catch-login-error/#post-9100394)
 * Hi Neil,
 * Thank you for reaching out to us and for your kind words.
 * From your explanation I understand that your website is translated only in 1 
   language.
 * When trying to login using the PB Login form – [wppb-login]:
 * If the username/email and password are incorrect the user should see the following
   notification: ERROR: Invalid username or email. Lost your password?
 * If the username/email is correct but the password is incorrect the user should
   see the following notification: ERROR: The password you entered is incorrect.
   Lost your password?
 * If the user didn’t confirm its email address it should see the following notification:
   ERROR: Your account has not been activated. Check your email for the activation
   link. If you have not received an email yet, click here to resend it.
 * Would you like to modify these notifications in order to include more info? You
   could use the [Labels Edit](https://www.cozmoslabs.com/add-ons/labels-edit/) 
   add-on ([docs](https://www.cozmoslabs.com/docs/profile-builder-2/add-ons/labels-edit/))
   for that.
 * Let me know if this is what you are looking for.
 * Best regards,
 *  Thread Starter [neilovan](https://wordpress.org/support/users/neilovan/)
 * (@neilovan)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/catch-login-error/#post-9100687)
 * Hi Teodor,
 * Thanks for your reply. OK excellent, your plugin already takes care of everything,
   in terms of catching the error and displaying appropriate message.
 * I have added the labels edit add-on already and will investigate further.
 * Thanks,
 * Neil.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘catch login error’ is closed to new replies.

 * ![](https://ps.w.org/profile-builder/assets/icon-256x256.png?rev=2961144)
 * [User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor](https://wordpress.org/plugins/profile-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/profile-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/profile-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/profile-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/profile-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/profile-builder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [neilovan](https://wordpress.org/support/users/neilovan/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/catch-login-error/#post-9100687)
 * Status: resolved