Added "Login failed" message when there was an error logging in