fix validation on multiple input