adding validation on answer type