changed the validation code
Merge pull request #1 from opencart/master

changed the validation code