Mailbox in wrong format when switching to deviceanduser mode

When I switch to use deviceanduser mode and I try and create a new device, in the advance panel, the mailbox is not set and when I submit the new device, I get an error saying that the mailbox is not in the correct format and it does not correctly save the secret which means that the device fails to register.

Any suggestions?