Add some lifecycle validation.
Merge pull request #1304 from brendandburns/valid

Add some lifecycle validation.