Use record.properties.fields instead of record.fields

Fix edina/fieldtrip-osm#29
Add missing case in the form validation
Merge branch 'master' of github.com:edina/fieldtrip-open