Put checkLoginState function into FB object