fixing validation on portfolio.php