Check that user is logged in