ensure admin is logged in to access admin page