properly clear inputs