displays error message for improper date selection