Fix bugs, add code for "back" button on MapsActivity, check network state before connect on LoginActivity, remove old code.