on the admin/index.php page
change:
<form id="form1" name="form1" method="post" action="index.php?failed=1<?php echo(isset($_SERVER["QUERY_STRING"])?"&".($_SERVER["QUERY_STRING"]):""); ?>">
to:
<form id="form1" name="form1" method="post" action="index.php?failed=1">