edited user model for database