move validation rules to entity classes
add validation for hasOne and belongsTo fields