          } else if ((e.status == 'error') && (e.reason == 'InvalidPassword')) {
                            show_errors("#register-error", e.messages);
                            $('#register-password').focus();
                        } else {
                            show_errors("#register-error");
                        }
                    });
            }
            return false;
        });

    var activateMechanism = function(el) {
        if (el.is('.login-form')) {
            el.find('in