postQuestion function updated