validate_states function

(Internal) Validate user-provided list of states