Add Validity Checking for Packages

Checks to make sure a package has specific fields before adding it.

This should prevent us from having to do null checking later.