Fixed initial login check