reset input field after alert

fix