Added hex validation