Fixed up the 401 issue with checking authentication, but now have other auth issues... but better than before :)