Added events created table to user profile.
Added check for null arrays of events.