fixed required bug
Merge pull request #46 from massiveart/bugfix/required

fixed required bug