register user to server