fix binding errors in validation sample