adding validation on CMW