Added method to StateManager to validate deserialized object before it is returned
Added UserContext