Added Models

- created Type controller
- created Type views
- made validation a bit more flexible