Adding in some validations on the objects