add decryption check