copying and pasting the code will not work in this way.
The spry validation should occur before any of the server validation, there should not be any conflict between the two.
can you send a link to your page where i can see the problem to investigate why the spry validation is not working.