login and logout works now