Validator function signature for strut