# Pre-registration action not showing right error message

**URL:** <https://community.auth0.com/t/pre-registration-action-not-showing-right-error-message/81938>\
**Category:** Get Help\
**Created:** [April 18, 2022, 8:30pm UTC](https://community.auth0.com/t/pre-registration-action-not-showing-right-error-message/81938 "2022-04-18T20:30:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adale](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adale/32/33630_2.png) [@adale](https://community.auth0.com/u/adale)\
**Post date:** [April 18, 2022, 8:30pm UTC](https://community.auth0.com/t/pre-registration-action-not-showing-right-error-message/81938/1 "2022-04-18T20:30:10Z")

</div>

Hi

I am trying to validate my user\_meta\_data in pre-registrtion action and show an appropriate error message if the check fails and stop the signup flow.

```auto
exports.onExecutePreUserRegistration = async (event, api) => {
  if (event.user.user_metadata.orgId === '12') {
    api.access.deny('no_signups_from_north_america', "Invalid org Id");
  }

```

(the check is only for testing purpose).

In the logs I can see the response sending back my error message as  
`{"name":"InternalExtensibilityError","statusCode":400,"code":"extensibility_error","message":"no_signups_from_north_america","friendly_message":"Invalid orgId.","description":"no_signups_from_north_america","fromSandbox":true}`

But on the signup page it displays “WE’RE SORRY, SOMETHING WENT WRONG WHEN ATTEMPTING TO SIGN UP.” and not the message I am sending.  
Is there something I am missing here.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 20, 2022, 9:30pm UTC](https://community.auth0.com/t/pre-registration-action-not-showing-right-error-message/81938/3 "2022-04-20T21:30:20Z")

</div>

Hi @adale,

Welcome to the Auth0 Community!

It sounds like you may be using Classic Universal Login, which doesn’t support passing the error in the same manner as New Universal Login. Here is an example of what each would look like:

**New Universal Login**

 ![image](https://global.discourse-cdn.com/auth0/original/3X/c/4/c4f2a5e2dc771aaec95f4d74c871fbd5c317e25f.png)

**Classic Universal Login**

 ![Screen Shot 2022-04-20 at 2.28.56 PM](https://global.discourse-cdn.com/auth0/original/3X/3/c/3c276e205d0e78fde64e744f11ea4f09074a719e.png)

---

<div class="post-metadata">

**Author:** ![adale](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adale/32/33630_2.png) [@adale](https://community.auth0.com/u/adale)\
**Post date:** [April 22, 2022, 4:26pm UTC](https://community.auth0.com/t/pre-registration-action-not-showing-right-error-message/81938/4 "2022-04-22T16:26:03Z")

</div>

I have some customization on sign up , which is not supported by New Universal Login page , so went with classic login page. So is there a way where we can customize the login/signup page and provide custom error page.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 25, 2022, 3:27pm UTC](https://community.auth0.com/t/pre-registration-action-not-showing-right-error-message/81938/5 "2022-04-25T15:27:46Z")

</div>

Yes, please see this doc:

> **[Customize Lock Error Messages](https://auth0.com/docs/customize/customize-lock-error-messages)**
>
> Customizing error messages with Lock v11

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 25, 2022, 9:35pm UTC](https://community.auth0.com/t/pre-registration-action-not-showing-right-error-message/81938/6 "2022-05-25T21:35:34Z")

</div>


