added data type check in Validator