added validation to check that no events can be created in the past