fix(form): check for undefined fields