"Add to cart" button was not displaying if a user was logged in but not registered in a class