Fix sudden bug with login system