Relating Categories and Subcategories

Relating Categories and Subcategories at Model level and adding some
validation.