[#384,slickgrid][s]add validator function to validate input