added saving user and ip as txt file to importing to other scripts