Autentication with logout