correct errors and validate