fixed firebase uid bug caused by delayed socket.io callback