Fixed validation for YUM