Add input validation for CRAB 2 procds