fixed imports in login and logout handlers