Added security measures to edit.php and delete.php.