check that "limit" and "offset" parameters are integers