fix bug when create new user for custom user model.