Title: Custom Validation Bug/Issue
Last modified: April 12, 2019

---

# Custom Validation Bug/Issue

 *  [mrbubble](https://wordpress.org/support/users/mrbubble/)
 * (@mrbubble)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-validation-bug-issue/)
 * Greetings,
 * My current issue is to have a field in the registration form that would contain
   a specific set of characters (that are predefined by me, for example PH3f1X) 
   that would permit a user to register.
 * On github I found a hint: [https://gist.github.com/ultimatemember/78aac8b268b2c75489f0](https://gist.github.com/ultimatemember/78aac8b268b2c75489f0)
   
   But it seems to be outdated, since, after using the code, a blank screen appears.
   _The plugin works but, instead of showing the error message, I am being redirected
   to a blank page._
 * Would You have a solution?
 * Thank You!
 * Regards,
    Edgars
    -  This topic was modified 6 years, 11 months ago by [mrbubble](https://wordpress.org/support/users/mrbubble/).

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

 *  [darkfreaks](https://wordpress.org/support/users/darkfreaks/)
 * (@darkfreaks)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-validation-bug-issue/#post-11422304)
 * the error line is outdated from V 1.0 UM
    ** replace
 * `$ultimatemember->form->add_error($key, __('Enter a valid 8-number serial please'));`
 * **
    with:
 *     ```
       $ultimatemember->classes[‘form’]->add_error($key,'Enter a valid 8 Number Serial Please');
       ```
   
 *  Thread Starter [mrbubble](https://wordpress.org/support/users/mrbubble/)
 * (@mrbubble)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/custom-validation-bug-issue/#post-11428419)
 * [@darkfreaks](https://wordpress.org/support/users/darkfreaks/) thanks for the
   tip!
 * Unfortunately, the issue still persists…

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

The topic ‘Custom Validation Bug/Issue’ 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/)

## Tags

 * [custom-validation](https://wordpress.org/support/topic-tag/custom-validation/)
 * [invitation code](https://wordpress.org/support/topic-tag/invitation-code/)

 * 2 replies
 * 2 participants
 * Last reply from: [mrbubble](https://wordpress.org/support/users/mrbubble/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/custom-validation-bug-issue/#post-11428419)
 * Status: not resolved