you should edit your add/modify/delete files so that they look at the session variables. If the user is not logged in, they should die and report an error. If the user is logged in, you should set those session vars that the add/modify/delete files are expecting to see.