Fix validation of required fields (fixes #300)
Merge pull request #482 from trollixx/fix-300

Fix validation of required fields (fixes #300)