Fix to clean Validator.php

Clean code in validateAccepted(), more explicitly expresses the logic.  Update unit test to match.

Based on franzliedke suggestion from previous pull request.
Merge pull request #2893 from ryanrobertsname/fix-clean-validator

Fix to clean Validator.php