fixed check for required_together
Merge pull request #1926 from akerl/requiredcheck

fixed check for required_together