modified InputValidator class to contain only class methods, and changed callers to suit