fixed validation on creating an event for safari