rename validate method of Validator classs to map method