Update core.gs

added condition to log into the event sheet