added isBefore, isAfter validator