Added a clearLogin() method