fixing user theme retrieval and cookie storage