validates answer