Issue with flags in the form submissions