update user model(fix method define_role), aplication controller, user factoru and model spec