Changed associations from HABTM to has_many -> belons_to, Added validations for associations