Refactor user model
Create user model
Refactor sessions