Message Popover changes

Changes added to the message popover so that on submit, the message is
validated and stored in db table so that it can be sent later.

TO DO: Message is not sent till now. The entries need to be taken from
table and should be sent.