if not logged in to admin, redirect to the home page