Why does success or failure of a request affect the login status?