JSTPDispatch: correction in validate()