Add model validation to avoid empty or duplicated titles. Fixes #15