Modified validator for reference