Route check if is the $id valid