Added initial support to Login/Logout.