validation of data