make sure to remove success class when erroring