The validation seems to be working on the page when I tried. Where exactly is the problem. What are the steps to reproduce? If it is an issue with the server validation I'll need a copy of the page to fully debug it.
It might be with the server side validation? For that just make sure your buttons are named uniquely and that you are using the associated "button pressed" trigger for the correct set of validations.