Added entity data validation.

Added some validation so the user doesn't go all willy nilly saving
whatever they want on an entity.