getValidationErrors bug fix