Class-based validators

All imports at the top of the file, please.