refactor guess_validation