correcting stub for checking if an id is valid