added user model
fix user#email uniqueness with db index
user authentication (impl for model)