updated #checking signed in? and cookies