Add middleware checkIsAuth