alert for wrong dates