Proper code for ensuring being logged in after the direct url test