Improve the onetoone relation

* Validate correctly the fields when the onetoone field is not required
* Make sure we delete old DB row when we update the onetoone field to None