Type and user unqiueness validation. Fixes #44.