invalid api key removal on settings change