added autologin if user has auth token