1. remove unused middleware
2. use adpater strategty to return correct 400 error message