Username and Password form

I have created custom Authenticator. It checks client IP and if It is allowed skip next steps in auth custom browser flow. I have add context.success() in my Java code to skip all following steps.
But Username and password form is existed regardless IP is allowed or not.
Username and password form has status Required and I can not change it.
Maybe you know any solutions how to avoid username password form?