few login and logout issues fixed