validate some data