Implemented log out