Dirty way to stop people from accessing pages if they are not suppose to. Maybe a better way later on.