added logged_in_redirect() and protect_page()