added validateSync

if you don't reject right away validate is cumbersome