Custom password validation against database

The problem most likely is that you are using the Field Name and not the Field Key.

Not this:
wixData.query(‘Orders’).find().then(result => {

But this:
wixData.query(‘orders’).find().then(result => {

That is, not Orders , but orders.

Read about Field Keys for more information.

Good luck,

Yisrael