Added a fix where the user checks the cart when first signing in and leads to a null pointer exception.