fix the imports and make the logout functional