added some helpers
customize login/logout for both