only validate name_path if requires is "none"
Merge pull request #400 from dimagi/fix-misleading-error

only validate name_path if requires is "none"