Modified structure and found a good way of protecting certain routes.