[BUGFIX] Restore "required" field attribute functionality

Fixes: #185
Merge pull request #191 from NamelessCoder/requiredfield

[BUGFIX] Restore "required" field attribute functionality