Auto login Connection and handle socket drops