Added a check to ensure only the owner of a message can edit it.