Add validations to the top-level class