Fixed a bug authenticating some users via their token