Restricts pages for authenticated users.