validation of records