Reworked logged in JS on checkout page.