update user in sync gateway upon login.