Can't login with username on my website, but can login on dashboard login script

Hey guys,

I am currently adding my custom database into auth0. Everything works when I sign in with my email, but I want to add username too. When I test on login script page, it gives me result that account is found (1st screenshot). But when I click on “try connection” and get redirected to, it says that the same credentials are incorrect (2nd screenshot).

Could you please help me with this? Thank you.