added logout and login