Validate state values
Merge pull request #30 from projecthydra/validate_state

Validate state values