Add validate middleware
Add pagination middleware