# How to change the alert message displayed when attempting to sign up with an existing email address

**URL:** <https://community.auth0.com/t/how-to-change-the-alert-message-displayed-when-attempting-to-sign-up-with-an-existing-email-address/75245>\
**Category:** Get Help\
**Tags:** login\
**Created:** [December 20, 2021, 9:57pm UTC](https://community.auth0.com/t/how-to-change-the-alert-message-displayed-when-attempting-to-sign-up-with-an-existing-email-address/75245 "2021-12-20T21:57:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shaun/32/33928_2.png) [@shaun](https://community.auth0.com/u/shaun)\
**Post date:** [December 20, 2021, 9:57pm UTC](https://community.auth0.com/t/how-to-change-the-alert-message-displayed-when-attempting-to-sign-up-with-an-existing-email-address/75245/1 "2021-12-20T21:57:09Z")

</div>

![auth0_existing_email_for_signup](https://global.discourse-cdn.com/auth0/original/3X/b/9/b95b5052fe61f7b2b4611ed0e373345202e25ed0.jpeg)

This shows the alert when a user attempts to sign up with an email address that already exists in Auth0. It does not make it clear as all what the problem is so want to either

1. Modify the alert text
2. Have the user redirected to the “Log In” screen instead.

Any of this possible?

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [December 21, 2021, 12:32am UTC](https://community.auth0.com/t/how-to-change-the-alert-message-displayed-when-attempting-to-sign-up-with-an-existing-email-address/75245/2 "2021-12-21T00:32:24Z")

</div>

Hi @shaun , welcome to the community!

You can modify the error messages via the Text Customization API:

- [Customize New Universal Login Text Prompts](https://auth0.com/docs/brand-and-customize/text-customization-new-universal-login)
- [Customize New Universal Login Text Prompts](https://auth0.com/docs/brand-and-customize/text-customization-new-universal-login/prompt-signup)

Are you using a custom database connection? This could be why the error message is generic if the error is being returned in one of your custom database scripts, as there is a provision for an `email-in-use` scenario for a normal database connection but not for custom ones as far as I can tell. Only a validation error can be returned, but you should be able to edit the generic error text too using the `custom-script-error-code` and `auth0-users-validation` keys.

- [https://auth0.com/docs/connections/database/custom-db/templates/create#script-execution-results](https://auth0.com/docs/connections/database/custom-db/templates/create#script-execution-results)

There currently isn’t a way to redirect the user to the login screen in this scenario as far as I am aware unfortunately. Please feel free to raise this as a feature request here:

- [Auth0: Secure access for everyone. But not just anyone.](https://auth0.com/feedback)

---

<div class="post-metadata">

**Author:** ![shaun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shaun/32/33928_2.png) [@shaun](https://community.auth0.com/u/shaun)\
**Post date:** [December 21, 2021, 9:42pm UTC](https://community.auth0.com/t/how-to-change-the-alert-message-displayed-when-attempting-to-sign-up-with-an-existing-email-address/75245/3 "2021-12-21T21:42:12Z")

</div>

Thanks for the reply and info @sgo

We don’t use a custom db connection and was expecting the default text to be `The user already exists.` as specified in the `email-in-use` key but seemingly this is getting overridden somewhere.

I will create a new tenant without our config to isolate where this might be getting changed else look to use the Text customization API.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 5, 2022, 9:42pm UTC](https://community.auth0.com/t/how-to-change-the-alert-message-displayed-when-attempting-to-sign-up-with-an-existing-email-address/75245/4 "2022-01-05T21:42:31Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
