got the server and client side validation working together