added validate_all sub