client-side detection of logged in users