add validation for adding or editting discussion