check if task has valid start and end (doesn't end before start)