implemented decrypting and listing messages