Reset input field after alert

fix