Fixed bug for $_SESSION in search and confirm