Making the logging changes to the user service and the tests, endpoints in the api