Added some validation.

Name must be unique, not be empty. Kind must not be empty. Still need to validate on Edit.