adding device field to host and user