added hex validation
Merge pull request #1 from gonzalovazquez/hex-validation

added hex validation