Adding security to Message model.