Bugfixing invalid variable $validator in HttpClient