fix spotify autologin with templates