Ensure that the flag submit button is disabled after submit,
add trim to the textarea test
remove redundant line