login and logout issues