check for login in dashboard. simple API call from js