Update user schema for better modularity. Change serialization upon logi...

...n