added two layers of security to messages show for sent and received