Added logout method