Added logout and login.