interface com persistencia e logout