Minor improvements to logging in UserResource.