Now takes bucket as argument
Clears settings and localization when user is not logged in