Fixing Anonymous login, and implementing logout