migrating Validation chapter to Mvc