Added in some of the client side auth and routing to just the userIdentity.js file. The script now will not let you access the other areas unless you have logged in.