Create middleware working
Refactor on the creation flow