now checking for for loginKey in session to be fool proof in case of private key loss, more appropriate log levels,