if it did not do anything, then there is no validation failure.
that code will write a comma separated list telling me which validation has failed, if there is not comma separated list, then there is no validation failure.
perhaps, a little more clarification of the issue is in order. Please provide a detailed explanation of what is happening when you test your page versus what you are expecting to happen. all you have said so far is that it doesn't work, that is a very broad statement and does not help me know what i should be looking for.