added example for isBefore validator