validation for event edit done