Fixed initial login bug