Class-based validators