updated user model and schema