Update validation.php

Fix for #187