make appscott work with new login logic