Client portal code