Validator function returns interface{}