Adding user agent logging for api logins.