change validation method in detailjs