Update validation.php

Fix for #187
Merge pull request #202 from danielboendergaard/patch-2

(da) Update validation.php