fixed things wrong with user model