Add token validator into image upload action.