raise exception when required field missed