add mechanism of verifying the invaliation of data fields