Implemented add item functionality in add.php