restful: addition of `validate` function in RestfulPagination

Hello! I fixed everything except having `validate=True` as default. This, i will take a look at it later :smile: