adding login and logout support for users