restful: addition of `validate` function in RestfulPagination

you can move it to `.validate` method