Add check to Decrypt function