warning don't prevent the submission
count the number of errors and warning