Added some permissions checking on homepage