Modified reauthenticate() to set the JSON assoc to null on failure.