modified userAuth