Added support for callable credential validator instead of a check in th...

...e database