Fixed autologin
Merge pull request #241 from AnAkIn1/fixautologin

Fixed autologin