Made it so all that non logged in users connot access other pages without first logging in and added custom 404 page