that code change is changing the redirect for failed validations. you want to set the redirect ion the Universal Email server behavior.
double click the universal email server behavior and set the go to page to "index.php?id=newpass"
instead of changing the validation failed redirect.