logic change to the error pop up by selecting date/time