Assignment 7: Part 1- Validator