implement client-side authentication