login and logout complete

login and logout complete