use replaceUser instead of updateUser