[jQuery] IE7 Issue, Imagine that

[jQuery] IE7 Issue, Imagine that


Hi Guys,
I'm having a problem with IE7 and a form. It probably has something to
due with my html but, I'm hoping someone can lend a helping hand. The
issue is, when I try to use the login button or hit enter in IE, it
will submit the form to the login.php and return my xml file as though
there is no ajax happening. Here's my jQuery code and HTML form --
<script type="text/javascript">
$(document).ready(function() {
$("#cust_login_frm").submit(function() {
        //grab form fields
        //and submit via ajax
        var inputs = [];
        $(':input', this).each(function() {
            inputs.push(this.name + '=' + this.value);
        });
        $.ajax({
            type: "POST",
            cache: false,
            url: "login.php",
            data: inputs.join("&"),
            dataType: "xml",
            error: function () {
                alert('something went wrong');
                },
            success: function(xml) {
                var _authenticated = $(xml).find('authenticated').text();
                var _failed_login_attempts = $
(xml).find('failed_login_attempts').text();
                if(_authenticated == "false" && _failed_login_attempts >=2) {
                    showRecaptcha('recaptcha', 'clean');
                    $("#error_msg").children().remove();
                    $("#error_msg").append("<pre>Login error: Your account/password
was rejected "
                        + _failed_login_attempts + " times. Please, check your login
credentials and try again.<\/pre>");
                }else if(_authenticated == "false" && _failed_login_attempts <2) {
                    $("#error_msg").children().remove();
                    $("#error_msg").append("<pre>Login error: Your account/password
was rejected. Please, check your login credentials and try again.<\/
pre>");
                }else {
                    Recaptcha.destroy();
                    $("#error_msg").children().remove();
                    $("#cust_login_frm").hide();
                    $("#ord_rpt_frm").slideDown("slow");
                }
            }
        });//end ajax
        //by default return false so it doesn't redirect user
        return false;
    });//end submit
});//end onload
function showRecaptcha(element, themeName) {
    Recaptcha.create(privatekey, element, {
        theme: themeName,
        tabindex: 0,
        callback: Recaptcha.focus_response_field
    });
}
</script>
<div id="cust_login_frm">
        <form name="cust_login_form" id="cust_login_form" action="">
            <fieldset>
                <legend>Existing Customer Login</legend>
                <div id="error_msg"></div>
                <label for="account">Account</label>
                <input type="text" name="cust_id" id="cust_id" />
                <br />
                <label for="password">Password</label>
                <input type="password" name="passwd" id="passwd" />
                <br />
                <input name="remember" type="checkbox" id="remember" value="ON" />
                <label for="remember">Remember my ID on this computer</label>
                <br />
                <input type="text" name="remote_ip" id="remote_ip"
style="visibility: hidden" <? print "value=\"" .
$_SERVER["REMOTE_ADDR"] . "\""; ?> />
                <div id="recaptcha"></div>
                <input type="submit" name="login_btn" value="Log In" />
            </fieldset>
        </form>
    </div>
Thanks!
-Lance