# How we can have same values for username and email

**URL:** https://meta.discourse.org/t/how-we-can-have-same-values-for-username-and-email/145207
**Category:** Development
**Created:** [March 23, 2020, 10:27am UTC](https://meta.discourse.org/t/how-we-can-have-same-values-for-username-and-email/145207 "2020-03-23T10:27:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![saurabhmasc](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)
#### Post date: [March 23, 2020, 10:27am UTC](https://meta.discourse.org/t/how-we-can-have-same-values-for-username-and-email/145207/1 "2020-03-23T10:27:24Z")

</div>

Hello All,

I want the same values for the username and email field. So how can we allow special characters in username while registering new User?  
Is there any property related to username regex validation?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [March 23, 2020, 10:54am UTC](https://meta.discourse.org/t/how-we-can-have-same-values-for-username-and-email/145207/2 "2020-03-23T10:54:56Z")

</div>

You can’t. You’d need to write a plug-in that overides all username validations, regular expressions for mentions and probably a lot more. And there are no guarantees that it will work perfectly afterwards. Good luck if you give it a try.

---

<div class="post-metadata">

### Author: ![saurabhmasc](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@saurabhmasc](https://meta.discourse.org/u/saurabhmasc)
#### Post date: [March 23, 2020, 10:59am UTC](https://meta.discourse.org/t/how-we-can-have-same-values-for-username-and-email/145207/3 "2020-03-23T10:59:37Z")

</div>

Thanks for quick reply. I will try to create plugin.
