Add validator for category