If this happens the easiest way to fix it is to go back to the home page and login from there then go back to the cart and checkout process pages.