Added variable validators for classes.