fixed field error population in formation.js