dynamic patch valhook according input type #429 #372
Add value validating
add onBeforeMask
Merge branch '2.x' into 2.5