updated date input failure checking