refactoring validate_keywords to require data from input