resetting flag submission text input