Adding pagination and some validation to different routes.