Added user IP and user agent logging near token