Fix warning in userAuth middleware