you had not set an action for the form:
<form method="post" id="application_pr" name="application_pr">
by not setting the action, the form was posting to itself.
if you add the validation to the thankyou page, you must set the action to post to the thank you page:
<form method="post" id="application_pr" name="application_pr" action="thankyou.php">