add full function for checkSession on dashboard