register with server