Added a way to validate data at the request level using the same validation function that the frontend uses.
Added a fix to validation function in actions
Added a middleware that merges all the request data