Validation for time overlap