Prevent goto next step when input data is invalid

when set the wz-next="fn()" , function fn will validate the input data, if the data is not accepted, fn will return "false", the wizard will not goto next step, and user can correct the input.   return nothing and true, wizard will goto next step