Added validation annotations for entity framework.