Added rule validator for dates.