Fix onGoodCredentials and onBadCredentials callback.