Added code to the user controller for getting content type from the request