Port diazo patch (do not use <form name="login_form">)