Sequence validation.