a few minor changes to validation extension