Validation messaged are causing an error

We're trying to print the text of the concatenated message which causes an error. I've moved the .text() up into the correct line.