Fixed User model.
Code refactoring & addd vendor lib.