Auto login after connected Wi-Fi AP.

Move login() from MainActivity.java to WifiLoginer.java.