various changes to topics and housekeeping code for login