login and logout are working