working on client-side login stuff