added associations for all models
added validations to category, product