with the js you don't send the page to the server so there should be no issue validating the fields. when you submit and validate with php you will have to repopulate the fields, you can just set the value of the form input to that which was submitted.
a very basic example
echo '<input type="text" value="$_POST[name]" name="name">';
of course $_POST wont exist till after the form has been posted to the server.