added datetime validation. Now can only add events in the past