throw exception when no fields are present on the form