add validator support to Handler and create a sample on Datahandler.prototype.update