Bug while not logged in restricting views now solved