Added validation for package check