updateUserInfo() copied into its own file for kludging