login and logout seem to be working