[#26] relations fixed
[#26] relations fixed and tested
[#27] validations added
[#27] validations tested