Added login requirement to 'add page' and 'add category' pages