Pull-Request: Fix checkpwd and val in eq func in custom dql

UPDATE:
I think I found the culprit. In the commit
feat(GraphQL): Support auth with custom DQL (#7775)

Have been made some changes, that lead to the checkpwd function not working correctly in custom dql queries.
I will try to figure out the reason.