Validation on client and server side: The end time of the assignment should be after than the starting time