finally got registering device / user on the server working, sweet jesus.