Removing empty or unnecessary fields from submissions