Added hex validation.