Updated devide registration to use HTTP Basic