if supplied date is invalid eg 31-02-1999 then error message becomes "is invalid date"