Made some fixes to the messages markup

Fixed some issues, concerning the messaging system. Validation.
Visualization.