I don’t know how to do it at all but from looking up from Google it seems that you might be able to redirect when the website uses the &login=failed in its hyperlink. However, when using a different login slug, it doesn’t do that at all and remains the same one.