Move validation block in model inside restriction