Validating has_one and belongs_to attributes