feat(unitproc):Create function: validateInput