made AutoLogin works