the validation errors are stored to a session variable. If you look at the validation code, you should be able to see the session name.
On error, the header function is used to redirect, if you don't enter a redirect page, it uses the PHP $_SERVER['PHP_SELF'] variable to redirect to the current page.