validations and some relationships