add connection status with the python server. disable login if there is no connection