added login check to blog pages