# Api.access.deny New Universal Login UI error display issue

**URL:** <https://community.auth0.com/t/api-access-deny-new-universal-login-ui-error-display-issue/114528>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [August 25, 2023, 3:44pm UTC](https://community.auth0.com/t/api-access-deny-new-universal-login-ui-error-display-issue/114528 "2023-08-25T15:44:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amrit/32/49208_2.png) [@amrit](https://community.auth0.com/u/amrit)\
**Post date:** [August 25, 2023, 3:44pm UTC](https://community.auth0.com/t/api-access-deny-new-universal-login-ui-error-display-issue/114528/1 "2023-08-25T15:44:23Z")

</div>

I’m using Pre User Registration Flow to deny signup in some cases using `api.access.deny("Invalid_email", "Please use valid Email address");`  
But this error on the New Universal Login page highlights Password field and display the error under Password field, as if there is issue with Password. Is there a config/setting to tag the field name when denying access or have the error displayed without Password field being highlighted to not confuse the users?

---

<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:** [August 28, 2023, 3:22pm UTC](https://community.auth0.com/t/api-access-deny-new-universal-login-ui-error-display-issue/114528/3 "2023-08-28T15:22:56Z")

</div>

Hi @amrit,

Welcome to the Auth0 Community!

That looks like the only way to display the error at this time. Feel free to leave us some feedback here: #Feedback!

---

<div class="post-metadata">

**Author:** ![amrit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amrit/32/49208_2.png) [@amrit](https://community.auth0.com/u/amrit)\
**Post date:** [August 28, 2023, 3:28pm UTC](https://community.auth0.com/t/api-access-deny-new-universal-login-ui-error-display-issue/114528/4 "2023-08-28T15:28:47Z")

</div>

Any plan of updating it, as it is very misleading. At very lease I would expect to have no highlighting of password field.

---

<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:** [August 29, 2023, 1:39pm UTC](https://community.auth0.com/t/api-access-deny-new-universal-login-ui-error-display-issue/114528/5 "2023-08-29T13:39:28Z")

</div>

We don’t have anything on our current roadmap. The best course of action is submit some feedback to the link I shared above. Thank you.

---

<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:** [September 12, 2023, 1:40pm UTC](https://community.auth0.com/t/api-access-deny-new-universal-login-ui-error-display-issue/114528/6 "2023-09-12T13:40:24Z")

</div>

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