ugly hack to see the user is logged in