It looks like you are working on this issue in another thread with Jason:
showthread.php?t=6421
It seems that you have already got this code correctly running on your failure page and that the error is referring to your credentials that are being used. Please only respond to one of these threads concerning this issue so we can more quickly help you get things going.