clear input only on success