Adding the option to make fields required. Working on #442.