updated mistakes made in user model creation