Added error message in case of invalid login
Diconnect doesnot throw when client is not connected.
Fixing tests