How to validate that a workshift is correct?