finished login and logout(with autheticated password)