A simple, flexible validation middleware to make validation less painful