to validate an entire