Created commandValidator class