"messages" tag displays all error messages in a
line because the default layout it supports is "list".
This tag also supplies one more value "table" for
"layout" attribute which displays all error messages in
a tabular format i.e. in subsequent lines. So specifying explicitly the
value of "layout" attribute to "table"
can solve the problem of displaying all messages in the same line.