check the error condition of time.Parse