updates validations in surveyDetails.js