trying to fix authentication