validate improved