Added new constraint called 'invalidDates'.