Added functionality so that you can only add items to your basket if you are logged in