Fix a bug where it would assume a connected device is OK even if password was wrong