add validate
add relation