modified validation.php