I dont see where you have added the ifg statement to show the error:
<?php if(isset($_SESSION['PromoCode']) && isset($_SESSION['realCode']) && ($_SESSION['PromoCode'] != $_SESSION['realCode'])) { ?>
the promo code entered did not match
<?php } ?>
you dont seam to have this code on your page, add this code where you would like to display the error.