Validate start and end hours before processing