Added logout method call