Fixed error in createEvent and updateEvent, verify title to create