fixing bug where auth token wouldn't save