correction bugs, ajout checkAuth