Fixed the bug with new relation validation
Merge pull request #705 from zefciu/fix-relation-form

Fixed the bug with new relation validation
Removing the link from assets when deleting the device