state and userid in task table