fix user preferences

- User preferences weren't saved in 2.1x
- PHP notices because of uninitialized Session variable