restful: addition of `validate` function in RestfulPagination

```python
if per_page < 0:
    raise InvalidPageError("Number of items per pages must be positive number.")
if page < 0 or page > self.pages:
    raise InvalidPageError("Invalid page ...")
```

--
PS: brackets are not needed