Created a method that runs validations on nested attributes for an object. Cleaned up the code from jeyb's pull request.