displaying error message when private key login fails