When the php header of the checkout_shipping page loads, if you are not yet logged in the cart will redirect to the login page. That's normal behaviour. If you are already logged in, then the checkout_shipping page will display normally.