Register device to the server on start