# Display error message on the login page

**URL:** <https://community.auth0.com/t/display-error-message-on-the-login-page/126419>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [February 2, 2024, 9:59pm UTC](https://community.auth0.com/t/display-error-message-on-the-login-page/126419 "2024-02-02T21:59:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ywaka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ywaka/32/50292_2.png) [@ywaka](https://community.auth0.com/u/ywaka)\
**Post date:** [February 2, 2024, 9:59pm UTC](https://community.auth0.com/t/display-error-message-on-the-login-page/126419/1 "2024-02-02T21:59:18Z")

</div>

Hi! I posted questions two days ago about using post login action to confirm email verification when user login. Originally, the action was triggered when a user try to register an account. However, by adding condition `event.stats.logins_count > 1` solved the issue. Now the action only works on when the user login.

 ![Screenshot 2024-02-02 at 4.58.27 PM](https://global.discourse-cdn.com/auth0/original/3X/a/f/af309ca16f1081512ffd3cac49e73d27a529f8bb.png)

However, I still would like to know if there is a way to display error message on the login page. Currently, when unverified email user try to log in, redirects to base URL “localhost:4300” containing an `error` query parameter and `error_description` instead of displaying error on the login page.

 ![Screenshot 2024-02-02 at 4.22.35 PM](https://global.discourse-cdn.com/auth0/original/3X/f/6/f6cc079f3a305c8c113e5ed4da256a387b5fdce6.png)

If there is no way to display error message on the login page, I would like to customize the the redirection URL, such as navigating to “localhost:4300/home” instead of the “localhost:4300”, so that I can display error message on specific page.  
I’m using Angular app and Universal login. Thank you in advance!

---

<div class="post-metadata">

**Author:** ![ywaka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ywaka/32/50292_2.png) [@ywaka](https://community.auth0.com/u/ywaka)\
**Post date:** [September 17, 2024, 9:25pm UTC](https://community.auth0.com/t/display-error-message-on-the-login-page/126419/2 "2024-09-17T21:25:31Z")

</div>

I haven’t visited the Auth0 community for a while, but for your information, I have resolved the issue by adding this line` api.redirect.sendUserTo("http://localhost:4300/#/page_name/?error=unverified_email");` Then handled on the app

---

<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:** [April 3, 2025, 4:18pm UTC](https://community.auth0.com/t/display-error-message-on-the-login-page/126419/3 "2025-04-03T16:18:32Z")

</div>

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