hm, this whole block doesn't really make sense considering login state is managed by the front end. 

Instead it would make more sense to use like a generic class for login/logout buttons so they are automatically hid/shown based on the logic in `base/login`