Added autologin if token has expired.