The error messages don't work for me when I tested them out. I tried signing up with a username that's already in the database, or I tried submitting the form while leaving a field empty, but all that happens is that the page just reloads.
What I'm thinking is that it's probably this:
The database shown in the article has:
But mine is like this:
So, are the errors not working because of this?