collection input generates `required` attribute if it has `prompt` option

closes #919
Merge pull request #920 from plataformatec/issue-919

collection input generates `required` attribute if it has `prompt` option