Changed how access_control() works so it actually works