Input box gets empty when text is accepted.