bugfixes of login system