Client-side guest login; bugfixes