Created modal for send message in profile page.

Added an internal function for sending messages.