login_model image model redirection fix