Added logout button; Fixed competition crashing