validate with param
change api
validate input with option params