Improved validation.php with a logger for #17