Improve component validator.