creates user model with attributes