# Custom Login Form doesn't work! 404 at usernamepassword/login

**URL:** <https://community.auth0.com/t/custom-login-form-doesnt-work-404-at-usernamepassword-login/70795>\
**Category:** Get Help\
**Tags:** api, login\
**Created:** [October 5, 2021, 7:20am UTC](https://community.auth0.com/t/custom-login-form-doesnt-work-404-at-usernamepassword-login/70795 "2021-10-05T07:20:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![olegcherr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/olegcherr/32/32131_2.png) [@olegcherr](https://community.auth0.com/u/olegcherr)\
**Post date:** [October 5, 2021, 7:20am UTC](https://community.auth0.com/t/custom-login-form-doesnt-work-404-at-usernamepassword-login/70795/1 "2021-10-05T07:20:24Z")

</div>

Custom Login Form doesn’t work!  
When I try to log in, it shows an empty error.  
In the console I see that it sends a request to non-existing URL:  
https://\< my custom domain \>/usernamepassword/login (404)

 ![20211005-112432](https://global.discourse-cdn.com/auth0/original/3X/d/4/d4f21c0a78caa295432c78b8d9523077b83e4998.png)

* * *

 ![20211005-100623](https://global.discourse-cdn.com/auth0/original/3X/4/d/4d38e48723f75d703549763427378400b2934b56.png)

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [October 5, 2021, 10:23am UTC](https://community.auth0.com/t/custom-login-form-doesnt-work-404-at-usernamepassword-login/70795/2 "2021-10-05T10:23:36Z")

</div>

Hi @olegcherr

Thanks for reaching out to the Auth0 Community!

Have you enabled custom database flag in Database connection settings? Please see the screenshot of the settings below.

 ![Screen Shot 2021-10-05 at 9.21.37 pm](https://global.discourse-cdn.com/auth0/original/3X/5/8/58254b60539b0cbe7d830cefc9ac728cb06c0525.png)

Regards  
Jeff

---

<div class="post-metadata">

**Author:** ![olegcherr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/olegcherr/32/32131_2.png) [@olegcherr](https://community.auth0.com/u/olegcherr)\
**Post date:** [October 5, 2021, 10:23am UTC](https://community.auth0.com/t/custom-login-form-doesnt-work-404-at-usernamepassword-login/70795/3 "2021-10-05T10:23:38Z")

</div>

The problem was in wrong database connection name.

I used default name:  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/f/1f523049101159116607252d8669cfe42bf898c5.png)

But in my account the database was named differently:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/0/6057512106823decf6e31b6f9dd5b543c2d9352f.png)

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [October 5, 2021, 10:24am UTC](https://community.auth0.com/t/custom-login-form-doesnt-work-404-at-usernamepassword-login/70795/4 "2021-10-05T10:24:30Z")

</div>

😀 Perfect !!! ✅

Thanks for letting us know.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 5, 2021, 11:02am UTC](https://community.auth0.com/t/custom-login-form-doesnt-work-404-at-usernamepassword-login/70795/5 "2021-10-05T11:02:06Z")

</div>

Thanks for sharing that with the rest of community!

---

<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:** [October 20, 2021, 11:03am UTC](https://community.auth0.com/t/custom-login-form-doesnt-work-404-at-usernamepassword-login/70795/6 "2021-10-20T11:03:08Z")

</div>

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