Add validate request middleware

Validate request middleware check validity for the incoming request.
For now it checks whether request has proper content type.