Add base model
Validation in BaseModel
Display errors in layout template
Errors template
Added Resource controller