Edit assignAutoComplete to return values, check wheather recipe is added or not before refresh form