Update Validator.php

Make validateAccepted cleaner.  Suggestion from franzliedke.