Add validation for segments dates