# Login click is not working

**URL:** <https://community.auth0.com/t/login-click-is-not-working/96201>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [December 11, 2022, 2:46pm UTC](https://community.auth0.com/t/login-click-is-not-working/96201 "2022-12-11T14:46:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![divya](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/divya/32/41872_2.png) [@divya](https://community.auth0.com/u/divya)\
**Post date:** [December 11, 2022, 2:46pm UTC](https://community.auth0.com/t/login-click-is-not-working/96201/1 "2022-12-11T14:46:35Z")

</div>

```plaintext

e.preventDefault();

var button = this;

var button = this;

var username = document.getElementById('email').value;

var username = document.getElementById('email').value;

var password = document.getElementById('password').value;

var password = document.getElementById('password').value;

button.disabled = true;

button.disabled = true;

console.log(username , password);

webAuth.login({

webAuth.login({

realm: databaseConnection,

realm: databaseConnection,

username: username,

username: username,

password: password,

password: password,

captcha: captcha.getValue()

captcha: captcha.getValue()

}, function(err) {

}, function(err) {

if (err) displayError(err);

if (err) displayError(err);

button.disabled = false;

button.disabled = false;

});

});

}

}

```

this is returning below error

1. Request URL:

[https://dev-uq7a1hnypawe3uje.us.auth0.com/usernamepassword/login](https://dev-uq7a1hnypawe3uje.us.auth0.com/usernamepassword/login)

1. Request Method:

POST

1. Status Code:

404

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 23, 2022, 7:11pm UTC](https://community.auth0.com/t/login-click-is-not-working/96201/3 "2022-12-23T19:11:58Z")

</div>

Hi @divya,

Welcome to the Auth0 Community!

I understand that you have issues with the login click not working.

In this case, could you please verify that your Custom Universal Login page code creates the request to the correct Database connection?

Typically, this error can happen when the `realm` parameter in the webAuth() call is made to an incorrect database connection.

Please let me know how this goes for you.

Thanks,  
Rueben

---

<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 6, 2023, 7:13pm UTC](https://community.auth0.com/t/login-click-is-not-working/96201/5 "2023-01-06T19:13:38Z")

</div>

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