Add functionality so that only logged in users can access add cat and add page forms