Reset cookie when api error on signin.