error checking transactions