better logic in confirm.php