ValidationChain: add a boolean "useFormat" parameter to the constructor

And use ValidationChain in the main program too.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>