Added draft code for login/logout.