added wifi-key validation