using wordpress function auth_redirect to redirect to
login page for not logged in user.