restful: addition of `validate` function in RestfulPagination