login and logout user controll