Fix login failed error bug