Your registration page and user login pages are in the directory 'account', and the failed.php page appears to be in the root directory. The form action is to the registration page itself.
So I would assume that the form action should be:
and the following lines should be:
$insertGoTo = "user_LogIn.php";
May be worth a try?