set inst_id and user_id