Save username and userid.