Adding validation rules to model + catching exceptions in controller