Working on validation middleware and caching system