Added validAccessCode() function and 2 new exceptions to search.php