Added error throwing for adding invalid field names