one line validation