Added terminal instance in login callback - issue #59