logout added

minor changes and logout added