Added functional test for is logged in