check for valid id is required in each core component. this can be kept common in a helper method.