updated answer dialog validation.