this class would be better placed in `/lib/validators`