Made autologin work.