bug fix in user model file