Fixed security issue related to submitting surveys