Relation datatype now works with an autocomplete. Handled non valid ids in the server