fix set_user method in tasks controller