Checking that the requested id is the same of that id in session