past date error checking