Title: Custom validation message for username
Last modified: October 28, 2022

---

# Custom validation message for username

 *  Resolved [jassimp](https://wordpress.org/support/users/jassimp/)
 * (@jassimp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/custom-validation-message-for-username/)
 * Hi there,
    The username fields shows the validation error message as “username
   is incorrect” instead of username already used if the user enter a existing username
   while registration
 * How to change this message?
 * Thank you

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

 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/custom-validation-message-for-username/#post-16144535)
 * [@jassimp](https://wordpress.org/support/users/jassimp/)
 * Your suggestion is insecure and reveals usernames at your site for scammers.
 *  Thread Starter [jassimp](https://wordpress.org/support/users/jassimp/)
 * (@jassimp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/custom-validation-message-for-username/#post-16145265)
 * Thank you for the prompt response
    I thought the same. But i would like to re
   draft it to some thing else as it is little bit confusing to the users. So how
   to customize the same ?
    -  This reply was modified 3 years, 8 months ago by [jassimp](https://wordpress.org/support/users/jassimp/).
 *  Plugin Support [Yurii](https://wordpress.org/support/users/yuriinalivaiko/)
 * (@yuriinalivaiko)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/custom-validation-message-for-username/#post-16152249)
 * You can use a hook _um\_submit\_form\_errors\_hook_ to customize validation and
   error messages.
    Example: [https://gist.github.com/yuriinalivaiko/f69f4a7460cb766344343a7b1af5e841](https://gist.github.com/yuriinalivaiko/f69f4a7460cb766344343a7b1af5e841)
 * See [Apply custom validation to a field](https://docs.ultimatemember.com/article/94-apply-custom-validation-to-a-field).
    -  This reply was modified 3 years, 8 months ago by [Yurii](https://wordpress.org/support/users/yuriinalivaiko/).
 *  Thread Starter [jassimp](https://wordpress.org/support/users/jassimp/)
 * (@jassimp)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/custom-validation-message-for-username/#post-16159988)
 * [@yuriinalivaiko](https://wordpress.org/support/users/yuriinalivaiko/) thank 
   you so much
    This was exactly i was looking for

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

The topic ‘Custom validation message for username’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [jassimp](https://wordpress.org/support/users/jassimp/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/custom-validation-message-for-username/#post-16159988)
 * Status: resolved