rename validator.go to util.go