fixed missing token error for creating events