added missing fields and show errors