Modified the checkDate logic

allowing dates to be before today's date