Added code to let users login and logout

that