added input check for device list