changed place of login and logout