dismiss loading dialog when trying to login/join. directly try to login after joined

infinite loading when trying to login and join.
fixed connecting socket io at specific step

1. Login 2. Back button press 3. turn off screen 4. turn on screen