Added getLoginStatus feature.