change state_id to user_id instead