$w(...).onClick not a function error

Hy guys, so l have managed to create a successful registration , but on the on the login page , where it looks for the user inmy custom database , all it says is TypeError : $w(…).onClick is not the a function

here is my code , if they is anything wrong l did do tell


Please share your code as text rather than screenshots and format it like:

```js
yourCodeHere
```

Maybe add that isLoggedIn logic to $w.onReady?

Try adding an export on click function to the button from the code panel?