finished user model with some error