add size and from query parameter validation