added functionality to keep registration closed until 14 days before event