added wifi connection for three types of wifi: WEP, WPA and no password