scanner: add validation for WPA passphrase