working cart with spinner validation