Thanks Ray,
I changed line 6 and on my local machine I still had the same problem, but when I updated the remote server the page was working correctly.
Just one thing appeared incorrect, when the send button is pressed without entry into the validated fields the warnings do not appear, but the field changes to red and when the field is corrected the field changes to green.