Added instance id check and error message if no instance asociated