check for valid device_type