Fixed login status check

Login status checking now works. Still not used yet.