still trying to fix authentication after register