Implementing rules and validators for validityPeriod