Freed memory from global USERNAME to avoid a memory leak