Added feature that resets text input field after error