added answer validation