validating errors Class 4 lab 2