What part doesn't work? It appears to be applied correctly? Are you expecting the validation client-side and that is why you think it doesn't work? Please describe what you are doing and your experience when it doesn't work so that I can better understand your expectations. Do you have a url where I can view the page and reproduce the issues?