beautify validation