added credentials as fk's in the device class