added welcome and logout functionality