set user upon login through register server