Made a quick change to save the user's "success" function if it is
passed in.