login and logout is flawless now.