Updated fetchLoginInfo method