Added validation to PackageType