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

I’ve done some playing around. I’m currently using the master branch to build a docker image. It does not work on master, but using the docker image from v21.03.2, this works.
So there must have been some change that breaks this feature in master.