Ensure state id and state name are passed.