fix to provide further details about invalid fields