check for invalid timestamps