use new getLoggedIn() js function instead of jquery.cookie.