might want to extract this out into a before_filter (esp if there are lots of pages that you need to be signed in to see)