Only load scripts if user is logged in.